package com.whz.eq;

import com.google.common.collect.Maps;

import java.util.LinkedHashMap;

/**
 * @ClassName PhoneMainTest
 * @Description TODO
 * @Author hong-zhi
 * @Date 2021/5/3 17:37
 * @Version 1.0
 */
public class PhoneMainTest {
    public static void main(String[] args) {
        LinkedHashMap<PhoneNumber, String> phoneMap = Maps.newLinkedHashMapWithExpectedSize(10);
//        phoneMap.put(new PhoneNumber((short) 707, (short)867, (short)5309), "hong-zhi");
//        String name = phoneMap.get(new PhoneNumber((short) 707, (short) 867, (short) 5309));
//        System.out.println(name);

        PhoneNumber phoneNumber = PhoneNumber.create((short) 7, (short) 867, (short) 5309);
//        System.out.println(phoneNumber);
        try {
            PhoneNumber pnClone = phoneNumber.clone();
            System.out.println(phoneNumber);
            System.out.println(pnClone);
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }


    }
}
